<?php
/**
 * The following variables are available in this template:
 * - $this: the BootCrudCode object
 */
/** @var AweCrudCode $this */
?>
<?php echo "<?php\n" ?>
/** @var <?php echo $this->controllerClass; ?> $this */
/** @var <?php echo $this->modelClass; ?> $model */
/** 
* Permite renderizar a la vista del modelo <?php echo $this->modelClass; ?>
*/
$this->menu=array(
array('label' =>Yii::t('AweCrud.app', 'Manage'),'icon'=>'list-alt', 'url' => array('admin')),
);
?>
<?php echo "<?php\n" ?>
$this->beginWidget('zii.widgets.CPortlet', array(
'title' => Yii::t('AweCrud.app', 'View'). ' '. <?php echo "$this->modelClass::label()" ?>.' '.CHtml::encode($model),
));
<?php echo "?>\n" ?>

<?php echo "<?php"; ?> $this->widget('bootstrap.widgets.TbDetailView',array(
'data' => $model,
'attributes' => array(
<?php foreach ($this->tableSchema->columns as $column): ?>
    <?php
    if ($column->isPrimaryKey) {
        continue;
    }
    ?>
    <?php echo $this->generateDetailViewAttribute($this->modelClass, $column) . ",\n" ?>
<?php endforeach; ?>
),
)); ?>
<center>
    <?php echo "<?php\n" ?> $this->widget('bootstrap.widgets.TbButton', array(
    'label' => Yii::t('AweCrud.app', 'Atras'),
    'htmlOptions' => array('onclick' =>'javascript:history.go(-1)'),
    ));
    <?php echo "?>\n" ?>
</center>
 <?php echo "<?php \$this->endWidget(); ?>\n" ?>